package com.ruoyi.base.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.SjzTouchRecordMapper;
import com.ruoyi.base.domain.SjzTouchRecord;
import com.ruoyi.base.service.ISjzTouchRecordService;

/**
 * 摸金记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
@Service
public class SjzTouchRecordServiceImpl implements ISjzTouchRecordService 
{
    @Autowired
    private SjzTouchRecordMapper sjzTouchRecordMapper;

    /**
     * 查询摸金记录
     * 
     * @param id 摸金记录主键
     * @return 摸金记录
     */
    @Override
    public SjzTouchRecord selectSjzTouchRecordById(String id)
    {
        return sjzTouchRecordMapper.selectSjzTouchRecordById(id);
    }

    /**
     * 查询摸金记录列表
     * 
     * @param sjzTouchRecord 摸金记录
     * @return 摸金记录
     */
    @Override
    public List<SjzTouchRecord> selectSjzTouchRecordList(SjzTouchRecord sjzTouchRecord)
    {
        return sjzTouchRecordMapper.selectSjzTouchRecordList(sjzTouchRecord);
    }

    /**
     * 新增摸金记录
     * 
     * @param sjzTouchRecord 摸金记录
     * @return 结果
     */
    @Override
    public int insertSjzTouchRecord(SjzTouchRecord sjzTouchRecord)
    {
        sjzTouchRecord.setCreateTime(DateUtils.getNowDate());
        return sjzTouchRecordMapper.insertSjzTouchRecord(sjzTouchRecord);
    }

    /**
     * 修改摸金记录
     * 
     * @param sjzTouchRecord 摸金记录
     * @return 结果
     */
    @Override
    public int updateSjzTouchRecord(SjzTouchRecord sjzTouchRecord)
    {
        return sjzTouchRecordMapper.updateSjzTouchRecord(sjzTouchRecord);
    }

    /**
     * 批量删除摸金记录
     * 
     * @param ids 需要删除的摸金记录主键
     * @return 结果
     */
    @Override
    public int deleteSjzTouchRecordByIds(String[] ids)
    {
        return sjzTouchRecordMapper.deleteSjzTouchRecordByIds(ids);
    }

    /**
     * 删除摸金记录信息
     * 
     * @param id 摸金记录主键
     * @return 结果
     */
    @Override
    public int deleteSjzTouchRecordById(String id)
    {
        return sjzTouchRecordMapper.deleteSjzTouchRecordById(id);
    }
}
